import {Quote} from '../domain/quote.model';
import {Action} from '@ngrx/store';
import {type} from '../utils/type.util';
export const  QUOTE_SUCCESS ='Quote Success';
export const  QUOTE_FAIL ="Quote Fail";
export const ActionTypes ={
  LOAD: type('[Quote] Load'),
  LOAD_SUCCESS: type('[Quote] Load Success'),
  LOAD_FAIL: type('[Quote] Load Fail')
}
export class LoadAction implements Action{
  type = ActionTypes.LOAD;
  constructor(public payload:null){}
}
export class LoadSuccessAction implements Action{
  type = ActionTypes.LOAD_SUCCESS;
  constructor(public payload:Quote){}
}
export class LoadFailAction implements Action{
  type = ActionTypes.LOAD_FAIL;
  constructor(public payload:string){}
}
export type Actions = LoadAction|LoadSuccessAction|LoadFailAction;
